/*
0:使用本地后端运行;
1:通过校园网调试;
2:在与AJAX接口同域名的服务器运行，*发布前必设为2*
*/
const RUN_MODE = 0;

let urlPrefix;

switch (RUN_MODE) {
    case 0:
        urlPrefix = "http://192.168.3.14:8897";
        break;
    
    case 1:
        urlPrefix = "http://172.20.37.58:8080";
        break;
    
    case 2:
        urlPrefix = "";
        break;
}

const HWMI_URLS = {
    // Local separated testing
    loginRequestUrl: urlPrefix + "/MLModel/acc_login/",
    logoutRequestUrl: urlPrefix + "/MLModel/acc_logout/",
    zstpRequestUrl: urlPrefix + "/MLModel/graph/",
    zstpRouteRequestUrl: urlPrefix + "/MLModel/graph/",
    jbzdModel1RequestUrl: urlPrefix + "/MLModel/ddgnn/",
    jbzdModel2RequestUrl: urlPrefix + "/MLModel/emr/",
    stsbRequestUrl: urlPrefix + "/MLModel/ner/",
    bzgjDownloadUrl:urlPrefix+"MLModel/download_tool/",
    managementUrls: {
        graphDbManagementUrls: {
            addEntityUrl: urlPrefix + "/MLModel/addProperties/",
            modifyEntityUrl: urlPrefix + "/MLModel/changeProperty/",
            removeEntityUrl: urlPrefix + "/MLModel/deleteEntity/",

            addRelationUrl: urlPrefix + "/MLModel/addRelationship/",
            modifyRelationUrl: urlPrefix + "/MLModel/changeRelationShip/",
            removeRelationUrl: urlPrefix + "/MLModel/deleteRelation/",

            queryEntityUrl: urlPrefix + "/MLModel/askProperty/",

            getDownloadLinkUrl: urlPrefix + "/MLModel/download_handler/",

            importUrl: urlPrefix + "/MLModel/import_triplets/",
            directUploadUrl: urlPrefix + "/MLModel/direct_upload/",

            batchUploadUrl:urlPrefix+"/MLModel/batch_upload"
        }
    }
};

export { HWMI_URLS };

